package YunNotes.allnotes.model;

import java.util.Date;

/**
 * @author 10593
 */
public class Notes {

    //笔记的id，区分用户

    private int id;

    //代表每篇笔记（每篇笔记对应一个num,唯一，自动排序，需要加主键）

    private int num;

    //笔记的标题

    private String headLine;

    //笔记内容

    private String content;

    //笔记是否公开

    private int publicity;

    //笔记分类的名称

    private String label;

    //分类的序号

    private int labelNum;

    //点赞数

    private int praisePoints;

    //浏览量

    private int pageView;

    //笔记的时间

    private Date createTime;

    //点赞人的id

    private String praiseId;

    //token

    private String token;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getHeadLine() {
        return headLine;
    }

    public void setHeadLine(String headLine) {
        this.headLine = headLine;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getPublicity() {
        return publicity;
    }

    public void setPublicity(int publicity) {
        this.publicity = publicity;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getLabelNum() {
        return labelNum;
    }

    public void setLabelNum(int labelNum) {
        this.labelNum = labelNum;
    }

    public int getPraisePoints() {
        return praisePoints;
    }

    public void setPraisePoints(int praisePoints) {
        this.praisePoints = praisePoints;
    }

    public int getPageView() {
        return pageView;
    }

    public void setPageView(int pageView) {
        this.pageView = pageView;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPraiseId() {
        return praiseId;
    }

    public void setPraiseId(String praiseId) {
        this.praiseId = praiseId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "Notes{" +
                "id=" + id +
                ", num=" + num +
                ", headLine='" + headLine + '\'' +
                ", content='" + content + '\'' +
                ", publicity=" + publicity +
                ", label='" + label + '\'' +
                ", labelNum=" + labelNum +
                ", praisePoints=" + praisePoints +
                ", pageView=" + pageView +
                ", createTime=" + createTime +
                ", praiseId='" + praiseId + '\'' +
                ", token='" + token + '\'' +
                '}';
    }
}
